﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace MiniPW.Core
{
	public class BasePage : System.Web.UI.Page
	{
		/******** Pola ***************************************************************************/
		private static string appName = "MiniPW";
		private static string titleSeparator = "::";


		/******** Wlasciwosci ********************************************************************/
		public static string AppName
		{
			get { return appName; }
			set { appName = value; }
		}

		public static string TitleSeparator
		{
			get { return titleSeparator; }
			set { titleSeparator = value; }
		}


		/******** Metody *************************************************************************/
		protected override void OnLoadComplete(EventArgs e)
		{
			Page.Title = String.Format("{0} {1} {2}", AppName, TitleSeparator, SiteMap.CurrentNode);
			base.OnLoadComplete(e);
		}
	}
}
